home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / programming / c / stormamiga_lib-v45_00d / include / assert_stormamiga.h next >
C/C++ Source or Header  |  2000-02-28  |  669b  |  36 lines

  1. #ifndef  ASSERT_STORMAMIGA_H
  2. #define  ASSERT_STORMAMIGA_H
  3.  
  4. /*
  5. **     $VER: assert_stormamiga.h 1.0 (18.09.98)
  6. **             Includes Release 45.00
  7. **
  8. **    Copyright © 1996/2000 by CyberdyneSystems
  9. **
  10. **            written by Matthias Henze
  11. **               All Rights Reserved
  12. */
  13.  
  14. #ifndef  STORMAMIGA_H
  15.   #include <stormamiga.h>
  16. #endif
  17.  
  18. #ifdef __cplusplus
  19.   extern "C" {
  20. #endif
  21.  
  22. /*----- stormamiga-functions -----*/
  23.  
  24. #ifdef  NDEBUG
  25.   #define assert_(C)
  26. #else
  27.   void    do_assert_  (char *, char *, char *, uint);
  28.   #define assert_(C)  { if(!(C)) do_assert_(#C, __FILE__, __FUNC__, __LINE__); }
  29. #endif
  30.  
  31. #ifdef __cplusplus
  32.   }
  33. #endif
  34.  
  35. #endif  /* ASSERT_STORMAMIGA_H */
  36.